package org.example.service;

import org.example.domain.SeckillActivity;
import org.example.model.Result;
import org.example.model.SeckillResult;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface SeckillService {
    /**
     * 查询正在进行的秒杀活动列表
     */
    Result<List<SeckillActivity>> getActiveSeckillActivities();
   

    Result<SeckillActivity> getSeckillActivityById(Long activityId);

    SeckillResult executeSeckill(Long activityId, String openId);

    void handleOrderTimeout(Long orderId);
}
